package com.wpx.Controller;

import com.wpx.Util.MinioUtil;
import com.wpx.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

@CrossOrigin
@RestController
@RequestMapping("/fileupdate")
public class FileUpdateController {
    @Autowired
    public MinioUtil minioUtil;

    @PostMapping("/ImageUpdate")
    public Result ImageUpdate(@RequestParam("file")MultipartFile multipartFile){
        String string = minioUtil.fileUpload(multipartFile);
        return Result.ok(string);
    }



}
